﻿@model Sharp.WebBooter.Areas.CMS.Models.MasterDataModel
<div class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title">@Model.PageTitle</h4>
            </div>
            <div class="modal-body" id="modalcontent">
                @using (Html.Bootstrap().BeginForm(c => c.Horizontal()))
                {
                    <div class="form-group">
                        @Html.LabelFor(m => m.Code, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().TextBoxFor(m => m.Code)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(m => m.Name, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().TextBoxFor(m => m.Name)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(m => m.FullName, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().TextBoxFor(m => m.FullName)
                        </div>
                    </div>
                    @*<div class="form-group">
                        
                        @Html.LabelFor(m => m.ParentCode, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().DropdownList().DataSource(Model.DropDown as System.Collections.IEnumerable).DisplayField("Name").ValueField("Code").SelectedValue(Model.ParentCode).Id("ParentCode").Simple()
                        </div>
                    </div>*@
                    @Html.HiddenFor(x => x.ParentCode);
                    @Html.HiddenFor(m => m.AssemblyQualifiedName)
                    @Html.HiddenFor(x => x.Id);
                }
            </div>
            <div class="modal-footer">
                @Html.Bootstrap().Button("保存").Style(BootstrapStyle.Primary).Click("window.app.saveForm(event,'" + @Url.Action("Save") + "');")
                @Html.Bootstrap().Button("关闭").Style(BootstrapStyle.Default).Attribute("data-dismiss", "modal")
            </div>
        </div>
    </div>
</div>